package com.lq.ecoldchain.ui.goodstype

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/10 0010  11:51
*function by lq
*/
val goodsTypeKodeinModule = Kodein.Module("Goods_Type_Kodein_Module"){
    bind<GoodsTypeViewModel>() with scoped(AndroidLifecycleScope).singleton {
        GoodsTypeViewModel()
    }
    bind<GoodsTypeDelegate>() with scoped(AndroidLifecycleScope).singleton {
        GoodsTypeDelegate(instance())
    }
}